package com.briup.jd2407cms.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.briup.jd2407cms.domain.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.briup.jd2407cms.domain.extend.ArticleExtend;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Entity com.briup.jd2407cms.domain.Article
 */
public interface ArticleMapper extends BaseMapper<Article> {

    List<String> selectUserStatusByArticleIds(@Param("articleIds") List<Long> articleIds);

    ArticleExtend selectDetailById(Long id);

    IPage<ArticleExtend> selectAllByCondition(IPage<ArticleExtend> page, @Param("name") String name, @Param("status") String status, @Param("categoryId") Integer categoryId, @Param("userId") Long userId, @Param("charged") Integer charged, @Param("begin") LocalDateTime begin, @Param("end") LocalDateTime end);

}




